'use strict';
const Controller = require('./base');

class UploadController extends Controller {
  async doUpload() {
    try {
      const res = await this.uploadFile();
      this.success(res);
    } catch (e) {
      this.fail(e);
    }
  }
}

module.exports = UploadController;
